package org.example.myleet.p965;

import org.example.myleet.Utils.Assert;
import org.example.myleet.Utils.Parser;

public class Main {
    public static void main(String[] args) {
        Solution solution = new Solution();
        Assert.isTrue(solution.isUnivalTree(Parser.parse(new Integer[]{1,1,1,1,1,null,1})));
        Assert.isTrue(!solution.isUnivalTree(Parser.parse(new Integer[]{2,2,2,5,2})));
    }
}
